package com.preparation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.preparation.domain.Post;
import com.preparation.domain.Collection;

import java.util.List;

public interface ICollectionService extends IService<Collection> {

    //收藏  取消收藏
    Boolean collect(Collection collection);

    //根据用户id和帖子id查询用户是否收藏
    Boolean getByUidPid(Collection collection);

    //查询用户所有收藏列表id
    List<Post> getByUid(Integer userId);


}
